package com.yunhe.spring;

public class A {
    private String name;

    public void show(){
        System.out.println("我是"+name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 想让A干点什么
     */
    private void init(){
        System.out.println("我是A 创建了");
    }
    private void destory(){
        System.out.println("我是A 销毁了");
    }
}
